---
// const response = await fetch("http://localhost:9901/api/getArticles");
// const data = await response.json();
---
<!-- 
<div class="container">
    <div class="card">
        <div class="info">
            <p>{data.beginDate} - {data.endDate}</p>
            <p>{data.university}</p>
            <p>{data.profession}</p>
            <p>{data.degree}</p>
        </div>
    </div>
</div> -->

<div class="container">
    <div class="card">
        <h2 class="title">教育经历</h2>
        <div class="info">
            <p>2020.09 - 2024.06</p>
            <p>江西理工大学</p>
            <p>软件工程</p>
            <p>工学学士</p>
        </div>
    </div>
</div> 

<style>
    .container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .card {
        background-color: #e6ecff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 20px;
        width: 60%;
        transition: transform 0.3s, box-shadow 0.3s;
        /* text-align: center; */
    }

    .card:hover {
        transform: scale(1.15);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;
    }

    .title {
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .info p {
        flex: 1;
        margin: 0 10px;
    }

    p:hover {
        color: rgb(248, 69, 4);
    }

    .date {
        color: #666;
    }
</style>
